package com.dlyk.mapper;

import com.dlyk.bean.TCustomer;
import com.dlyk.result.CustomerExcel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TCustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TCustomer record);

    int insertSelective(TCustomer record);

    TCustomer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TCustomer record);

    int updateByPrimaryKey(TCustomer record);

    /**
     * 客户管理分页查询
     * @return
     */
    List<TCustomer> selectCustomerPage();

    List<TCustomer> batchImportExcel(List<String> idList);

    /**
     * 查询客户总数
     * @return
     */
    Integer selectCustomerCount();
}